package com.yuexun.dhdoctor.module.Contract.api;


import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.module.Contract.bean.CreateGroup;
import com.yuexun.dhdoctor.module.Contract.bean.GoupExist;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by work-jx on 2016/7/25.
 */
public interface CreateApi {
    //部门列表信息
    @FormUrlEncoded
    @POST("createGroup.json?")
    Observable<CreateGroup> createGroup(@FieldMap Map<String, String> praise);

    //查询群组名称是否存在
    @FormUrlEncoded
    @POST("inquireGroupNameExisit.json?")
    Observable<BaseEntity<GoupExist>> isGroupExisit(@FieldMap Map<String, String> praise);
}
